import { createRouter, createWebHistory } from 'vue-router'
import MyAccount from '../views/MyAccount.vue'
import MySetting from '../views/MySetting.vue'
import SearchResult from '../views/SearchResult.vue'
import MyInfos from '../views/MyInfos.vue'
import Collect from '../views/Collect.vue'
import MemEditorVue from '../views/MemEditor.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    //  {
    //    path: '/',
    //    name: 'searchHome',
    //    component: SearchHome
    //  },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/Test.vue')
    },
    {
        path: '/myAccount',
        name: 'myAccount',
        component: MyAccount
          
      },
      {
        path: '/mySetting',
        name: 'mySetting',
        component: MySetting 
      }
      ,
      {
        path: '/searchResult',
        name: 'searchResult',
        component: SearchResult 
      },
      {
        path: '/myInfos',
        name: 'myInfos',
        component: MyInfos 
    },
    {  path: '/collect',
    name: 'collect',
    component: Collect 
        
    },
    {  path: '/',
    name: 'collect',
    component: Collect 
        
    },
    {  path: '/memEditor',
    name: 'memEditor',
    component: MemEditorVue 
        
      }
  ]
})

export default router
